package spi;

/**
 * 描述:自定义一个spi加载类
 *
 * @author Madison You
 * @created 14:40
 */
public final class ShardingKeyGeneratorServiceLoader extends TypeBasedSPIServiceLoader<ShardingKeyGenerator> {

    static {
        /*将自定义的接口注册进一个全局的spi加载集合*/
        NewInstanceServiceLoader.register(ShardingKeyGenerator.class);
    }

    public ShardingKeyGeneratorServiceLoader() {
        super(ShardingKeyGenerator.class);
    }
}
